lcDrwDeleteObject Home

Deletes a named object from a drawing.

 BOOL lcDrwDeleteObject (
   HANDLE hDrw,
   HANDLE hObject
 );

Parameters
hDrw
  Handle to a drawing object.
hObject
  Handle to a named object (layer, linetype, text style, etc.)

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

Remarks

  The following objects can't be deleted:
- default objects, which was created with the lcDrwNew function.
- objects that are referenced in other objects.
- active objects.

See Also

  lcDrwGetObjectByIDlcDrwGetObjectByName,   Code sample